package srw;
import java.util.Vector;

/**
 * prsesents word's lemma, properties and arguments
 *
 */
public class Word {
	/**
	 * the root of the result tree 
	 * has one argument: Argument.UNIVERSAL_ARGUMENT
	 */
	public static final Word UNIVERSAL_WORD = new Word("");
	static {
		UNIVERSAL_WORD.addArgument(Argument.UNIVERSAL_ARGUMENT);
	}
	
	private String _name;
	private Vector<Property> _properties = new Vector<Property>();
	private Vector<Argument> _arguments = new Vector<Argument>();
	
	public Word(String name) {
		_name = name;
		System.err.println("word's name " + _name);
	}
	
	public void addProperty(Property property) {
		_properties.add(property);
		System.err.println("add property " + property.getName());
	}
	
	public void addArgument(Argument argument) {
		_arguments.add(argument);
		System.err.println("add argument");
		argument.print();
	}
	
	public Vector<Argument> getArguments() {
		return _arguments;
	}

	public Vector<Property> getProperties() {
		return _properties;
	}

	public String getName() {
		return _name;
	}

	public int getNumberOfArguments() {
		return _arguments.size();
	}
	
}
